package com.proj.dao;

import com.proj.bean.Cart;
import com.proj.bean.Useraddress;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CartDao {

    int add(@Param("cart")Cart cart);

    int subtract(@Param("cart")Cart cart);

    int del(@Param("cart")Cart cart);

    int getCount(@Param("cart")Cart cart);

    List<Cart> getList(@Param("userid")int userid);

    List<Useraddress> getUserAddress(@Param("userid")int userid);

    int cartgoodsstate(@Param("userid")int userid, @Param("goodsid")int goodsid);

}
